package cn.kgc.vue.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_score
 */
@TableName(value ="sys_score")
@Data
@ExcelTarget("score")
public class Score implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班级
     */
    @TableField(value = "clazz")
    @Excel(name = "班级",orderNum = "3")
    private String clazz;

    /**
     * 考生姓名
     */
    @TableField(value = "student_name")
    @Excel(name = "姓名",orderNum = "2")
    private String studentName;

    /**
     * 考试成绩
     */
    @TableField(value = "score")
    @Excel(name = "成绩",orderNum = "5")
    private Double score;

    /**
     * 考试内容
     */
    @TableField(value = "exam_content")
    @Excel(name = "考试内容",orderNum = "4")
    private String examContent;

    /**
     * 考试时间
     */
    @TableField(value = "exam_time")
    @Excel(name = "考试时间",orderNum = "6",exportFormat = "yyyy/MM/dd",importFormat = "yyyy/MM/dd")
    private Date examTime;

    /**
     * 考生学号
     */
    @TableField(value = "student_no")
    @Excel(name = "学号",orderNum = "1")
    private String studentNo;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}